package cn.edu.sctu.sctu_lysd.utils;

import android.content.Context;
import android.content.Intent;
import android.os.Bundle;


public class JumpUtils {

    /**
     * 跳转
     *
     * @param thisContents
     * @param newClass
     */
    public static void jumpActivity(Context thisContents, Class newClass) {
        Intent intent = new Intent(thisContents, newClass);
        thisContents.startActivity(intent);
    }

    public static void jumpActivity(Context thisContents, Class newClass, Bundle bundle) {
        Intent intent = new Intent(thisContents, newClass);
        intent.putExtras(bundle);
        thisContents.startActivity(intent);
    }

}
